package com.tjh.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tjh.common.utils.PageUtils;
import com.tjh.gulimall.member.entity.MemberEntity;
import com.tjh.gulimall.member.exception.PhoneExsitException;
import com.tjh.gulimall.member.exception.UserNameExistException;
import com.tjh.gulimall.member.vo.MemberLoginVo;
import com.tjh.gulimall.member.vo.MemberRegistVo;
import com.tjh.gulimall.member.vo.SocialUser;

import java.util.Map;

/**
 * Create by koala on 2021-01-24 21:41:55
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //day97
    void regist(MemberRegistVo vo);

    //day97
    void checkPhoneUnique(String phone) throws PhoneExsitException;

    //day97
    void checkUserNameUnique(String userName) throws UserNameExistException;

    //day98
    MemberEntity login(MemberLoginVo vo);

    //day99
    MemberEntity login(SocialUser socialUser) throws Exception;
}

